<?php
require "model/article.model.php";
session_start();
$id = $_GET['id']; //article_content表的id值
$kid = $_GET['kid'];

$conten = articleModel::getArticlecontent($id); //获取文章内容

$next = articleModel::nextarticle($kid,$id);
$next_id = $next['next_id']; //获取下一页id
$res3 = $next['res3']; 

$pre = articleModel::prearticle($kid,$id);
$pre_id = $pre['pre_id']; //获取上一页id
$res4 = $pre['res4'];    

$messag = articleModel::getMessage($id);       //获取留言内容

require "view/article.tpl.php";



